package com.webshooter.encoder;

import com.webshooter.entity.Entity;
import javax.json.JsonObjectBuilder;

public class RemoveEntityEvent implements Event {

    public Entity entity;

    public RemoveEntityEvent(Entity entity) {
        this.entity = entity;
    }

    @Override
    public JsonObjectBuilder toJson() {
        return EntityEventUtil.createEntityJsonObject(entity, "REMOVE_ENTITY_EVENT");
    }
}
